<script type="text/javascript">
    $("#license_home_modal").parents(".modal-dialog").css("min-width",577);
    function submit_license_message(){
        angular.element('#license_open_button').scope().close("/license/create/home"); 
        angular.element('#license_open_button').scope().open("/license/create/message");
        var post_data = {
                        
            }
            $.post("", post_data,
                    function(data){
                        if (data.reply.is_success){
                             
                                                       
                        } else {
                               
                        }
                    
                 });
    }
    function submit_license_success(){
        angular.element('#license_open_button').scope().close("/license/create/home"); 
        angular.element('#license_open_button').scope().open("/license/create/success"); 
    }
</script>
<div class="modal-header">  
    <h3>激活注册</h3>
    <i id="close_icon" ng-click="cancel()" class="fa fa-times"></i>
</div>
<div class="modal-body modal-body-height" id="license_home_modal"> 
    <div id="license_open_button" ng-controller="LicenseModalCtrl"></div>
    <div class="license_home_box">
        <p class="license_home_title">当前系统信息</p>
        <table class="license_home_tab">
            <tr>
                <td>已授权节点：</td>
                <td>{{ cluster.permit_hosts |length }}个</td>
            <tr>
            <tr>
                <td>授权无效节点：</td>
                <td>{{ cluster.invalid_hosts |length }}个</td>
            <tr>
            <tr>
                <td>试用期节点：</td>
                <td>{{ cluster.free_hosts|length}}个</td>
            <tr>
            <tr>
                <td>授权日期：</td>
                <td>{{ cluster.register_date_at| default('', True) }}
                </td> 
            <tr>
            <tr>
                <td>截止日期：</td>
                <td>{{ cluster.invalid_date_at| default('', True)}}</td> 
            <tr>
            <tr>
                <td>授权状态：</td>
                <td><span class="license_state">{{cluster.license_stat_show}}</span></td> 
            <tr>
        </table>
    </div>
    <div class="license_home_prompt">
        <p>提示</p>
        <ul>
            <li><span class="inportant_log">*</span>先<span style="color:#333333">"&nbsp;申请扩容&nbsp;"</span>获取激活码文件, 再<span style="color:#333333">"&nbsp;导入激活码&nbsp;"</span>。</li>
            <li><span class="inportant_log">*</span>试用版请先申请激活。</li>
        </ul>
    </div>
</div>
<div class="modal-footer license_home_footer">
    <button class="" ng-click="activation_ok()">申请激活</button>
    <button class="" ng-click="activation_ok()">申请扩容</button>
    <button class="" ng-click="import_ok()">导入激活码</button>
</div>
